<?php
/**
 * <b>RUBIK IT Solution & Development Co., ltd</b>
 *
 * PROJECT		: PSD
 * @version 	: 1.1
 * COPYRIGHT    : 2009
 * ------------------------------------------------------
 * 
 * @Created on	:  Jun 17, 2009
 * 
 */
RCoreImporter::cls( "html.TableControl" );
class TimeStampTableControl extends TableControl {
	
	function createHtmlDataField($record, $fieldName, $formatLink, $keyValue, $fieldInfo) {
		if (!array_key_exists($fieldName, $record)) {
			return $this->createItemsLink($this->getLabel($fieldName),$keyValue,$formatLink, $fieldInfo);
		}
		if($fieldName == 'session_lastime') {
			$fieldData = date('H:i d/m/Y', $record->$fieldName);
		} else {
			$fieldData = $record->$fieldName;
		}
		return $this->createItemsLink($fieldData,$keyValue,$formatLink, $fieldInfo);
	}
}